<%@page import="bean.boardVO"%>
<%@page import="bean.boardDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>게시글 보기</title>
<link rel = 'stylesheet' href = "board.css">
<script src = 'board.js'></script> 
</head>
<body>
<jsp:useBean id="vo" class = 'bean.boardVO' scope='page'/>
<jsp:setProperty property="*" name="vo"/>
<%
boardDTO dto = new boardDTO();
dto.setVo(vo);
boardVO v = dto.view();
%>
<form name = 'hiddenFrm' method="post"> 
	<input type='hidden' name='b_number' value="<%=vo.getB_number()%>"/>
	<input type="hidden" name="nowPage"	value="<%=vo.getNowPage()%>"/>
	<input type="hidden" name='find' value='<%=vo.getFind()%>'/>
</form>
<h1> 게시판 보기 </h1>
<hr>
	<div class = 'b_title'>
		<div class = 'line' id = 'b_title'><!-- 제목 : --> <%=v.getB_title() %> 안녕하세요</div><br/>
	</div>	
		<div class = 'line2' id = 'b_number' align="right">글번호 : <%=v.getB_number() %> </div>
		<div class = 'line2' id = 'm_id' style="text-align: left">글쓴이 : <%=v.getM_id() %></div>
		<div class = 'line2' id = 'b_date' style="text-align: right;">작성일 : <%=v.getB_date() %> </div>
		<div class = 'line2' id = 'b_modifyDate' style="text-align: right;">최종수정일 : <%=v.getB_modifyDate()%> </div><br>
		<hr>
	<div>
		<%
		if(v.getB_image()!= null) {%>
   		<img src="/Web/Images/<%=v.getB_image()%>" alt="사진" width='200px' height='100px'/>
		<%} %>
	
		<div><!-- 내용 : --> <%=v.getB_content() %> </div><br>
		<div>
			<% if(v.getB_image()!= null){%>	
			이미지명: <%=v.getB_image() %> 
			<% }else{%>
			이미지명 : 파일없음
			<% }%>
		</div>
	</div>
<br>
<hr>
<input type ="button" 	value="새 글 작성" 	id="btnInput">
<input type ="button" 	value="수정" 		id="btnModify">
<input type ="button" 	value="삭제" 		id="btnDelete">
<input type ="button" 	value="목록으로" 	id="btnList">

</body>

</body>
</html>